package com.atuguigu.boot3.core.robot.controller;

import com.atuguigu.boot3.core.robot.properties.RobotProperties;
import org.apache.commons.lang3.StringEscapeUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class RobotController {
    @Autowired
    RobotProperties robotProperties;
    @GetMapping("/robot/hello")
    public String hello(){

        StringEscapeUtils.unescapeHtml3("123");
        return robotProperties.getName()+"==="+robotProperties.getAge()+"==="+robotProperties.getEmail();
    }
}
